<html>
<!-- Use class attribute to define cell style
also you can use 'field' attribute of cells in css
-->
<style>
 {{{defaultstyle}}}
 body {margin: 20px 20px; }
 table {box-shadow: 5 5 10 #777;}
 td, th {border: solid #eee 1px; font-size: 12px; padding: 2 2; }
 th {background: #888; color: white; padding: 5px 5px; resize: horizontal; draggable: true; }
 .table-group-box {background: #888; border: solid #555 1px; padding: 3 3; margin: 5 0; color: white }
 .group {background: #686; font-weight: bold; font-size: 16px; color: white}

 .green_cell {background: #eeffee}
 .bold_striked_cell {text-decoration: line-through; font-weight: bold}
 tr[state="HI"] td[field="COMPANY"] {background: yellow}
 .pageheader {width: 100%; border-bottom: solid #aaa 1px; text-align: center; font-size: 10px; margin-left: 20px; margin-top: 10px}
 .pagefooter {width: 100%; border-top: solid #aaa 1px; text-align: center; font-size: 10px; padding: 5px 5px;}
@page {margin: 10mm 5mm 10mm 5mm}

</style>

<report-params>
 <param name="state" caption="State" type="list" template=" and state=:state_value" sql="select distinct state, state from customer"/>
 <param name="company" caption="Company" type="string" template=" and company starting with :company_value"/>
</report-params>

<div class="pageheader">
 Page header. Page <span class="page"/> of <span class="pagecount"/>
</div>

<div class="pagefooter">
 Page footer
</div>


<h2>Customer list</h2>

<DATAPACKET name="cust">
 <METADATA>
  <FIELDS>
   <FIELD name="CUSTNO" caption="No"/>
   <FIELD name="COMPANY" caption="Company"/>
   <FIELD name="STATE" caption="State" rowspan="*"/>
   <FIELD name="CITY" caption="City" class="green_cell"/>
   <FIELD name="ADDR1" caption="Street" />
   <FIELD name="PHONE" caption="Phone" class="bold_striked_cell"/>
   <FIELD name="CONTACT" caption="Contact"/>
  </FIELDS>
  <SQL>
   select * from customer
   where (1=1)  {{state}} {{company}}
   order by state
  </SQL>
 </METADATA>
</DATAPACKET>

</html>
